package com.gwz.cardserver.consts;

public enum ChatMessageEnums {
    CHAT1(1, "大家好很高兴见到各位~"),
    CHAT2(2, "和你合作真是太愉快啦!"),
    CHAT3(3, "快点吧,我等到花都谢了。"),
    CHAT4(4, "你的牌打得太好了!"),
    CHAT5(5, "不要吵了,有什么好吵的,专心玩游戏吧!"),
    CHAT6(6, "不要走,决战到天亮!"),
    CHAT7(7, "再见了,我会想念大家的~"),
    ;


    private int code;
    private String value;


    ChatMessageEnums(int code, String value) {
        this.code = code;
        this.value = value;
    }

    public static ChatMessageEnums getByCode(int code) {
        for (ChatMessageEnums value : values()) {
            if (value.code == code) {
                return value;
            }
        }
        return null;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
